package com.bestv.search.spider.service.impl;

import com.bestv.search.spider.dao.VideoBaseInfoDao;
import com.bestv.search.spider.model.VideoBaseInfo;
import com.bestv.search.spider.service.VideoBaseInfoManager;

import java.util.List;

public class VideoBaseInfoManagerImpl implements VideoBaseInfoManager {

    private VideoBaseInfoDao baseInfoDao;

    @Override
    public void saveOrUpdate(List<VideoBaseInfo> list) {
        for (VideoBaseInfo info : list) {
            baseInfoDao.saveOrUpdate(info);
        }
    }

    public VideoBaseInfoDao getBaseInfoDao() {
        return baseInfoDao;
    }

    public void setBaseInfoDao(VideoBaseInfoDao baseInfoDao) {
        this.baseInfoDao = baseInfoDao;
    }
}
